import { reactive } from 'vue'
const state = reactive<Record<string,any>>({
  logo: '',
  phone: ''
})

const getValue = (type: string) => state[type]

export function useHeader() {
  return {
    set: (type: string, value: any) => state[type] = value,
    get: (type: string) => state[type],
  }
}